package com.mpsc.spring.demo.controller;

import com.mpsc.spring.demo.sevice.EventService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/event")
@Api(value = "EventController", tags = "事件管理")
public class EventController {

    @Autowired
    private EventService eventService;

    @GetMapping("/create")
    @ApiOperation("创建一个事件")
    public void createEvent() {
        eventService.createEvent();
    }
}
